import {useRef,useEffect} from 'react'
function App (){
    const ipt=useRef(null)
 
    useEffect(()=>{
        ipt.current.focus()
    },[])


    return (
        <div>
            <input type="text" ref={ipt}></input>
        </div>
    )

}

export default App